package org.streets.eis.ext.rbac;

import org.apache.tapestry5.ioc.Configuration;
import org.slf4j.Logger;
import org.streets.database.SQLConnection;
import org.streets.eis.ext.rbac.internal.RBACAuthorizerImpl;
import org.streets.eis.ext.rbac.services.RBACAuthorizer;

public class RBACModule {
	
	public void contributeEntityPackageManager(Configuration<String> configuration) {		
		configuration.add("org.streets.eis.ext.rbac.entities");
	}	
	
	public RBACAuthorizer buildRBACAuthorizer(Logger logger, SQLConnection connection) {
		return new RBACAuthorizerImpl(logger, connection);
	}
}
